<?php
include 'lib/common.php';
?>
<script type="text/javascript" charset="utf-8" src="utils/kindeditor/kindeditor.js"></script>
<script type="text/javascript">
    KE.show(
    {
        id:'btdesc'
    }
);
</script>
<script type="text/javascript">
    function checkNull(){
        if($("input[name='btname']").val() != "" && $("input[name='btfile']").val() != ""){
            return true;
        }
        return false;
    }
</script>
<form action="upload.php" method="post" enctype="multipart/form-data" onSubmit="return checkNull()">
    <table>
        <tbody>
            <tr>
                <td>种子标题*</td>
                <td><input type="text" name="btname"></td>
            </tr>
            <tr>
                <td>种子文件*</td>
                <td><input type="file" name="btfile"></td>
            </tr>
            <tr>
                <td>种子预览图</td>
                <td>
                    <input type="text" name="btimg"><br/>
                    <input type="text" name="btimg"><br/>
                    <input type="text" name="btimg"><br/>
                </td>
            </tr>
            <tr>
                <td>种子描述</td>
                <td><textarea id="btdesc" name="btdesc" rows="10" cols="20">表述</textarea></td>
            </tr>
            <tr>
                <td colspan="2"><input type="submit" value="上传"></td>
            </tr>
        </tbody>
    </table>
</form>
<?php
include 'include/footer.php';
?>
